package com.example.oop.demo07;

public class Person01 {
    //2.赋初值
    {
        System.out.println("匿名代码块");
    }
    //1.只执行一次
    static{
        System.out.println("静态代码块");
    }
    //3.
    public Person01(){
        System.out.println("构造方法");
    }

    public static void main(String[] args) {
        Person01 person01 = new Person01();
        System.out.println("==========");
        Person01 person02=new Person01();
    }
}
